package cn.fws.meap.user.entity;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import cn.fws.framework.web.entity.BaseEntity;
import java.math.BigDecimal;

/**
 * 账户表 user_account
 * 
 * @author chenkh
 * @date 2019-03-07
 */
public class Account extends BaseEntity {

	private static final long serialVersionUID = 1L;
	
	/** 编号 */
	private String id;
	/** 用户id */
	private String openid;
	/** 账户余额 */
	private BigDecimal accBalance;
	/** 账户积分 */
	private BigDecimal accIntegral;

	public void setId(String id) {
		this.id = id;
	}

	public String getId() {
		return id;
	}
	public void setOpenid(String openid) {
		this.openid = openid;
	}

	public String getOpenid() {
		return openid;
	}
	public void setAccBalance(BigDecimal accBalance) {
		this.accBalance = accBalance;
	}

	public BigDecimal getAccBalance() {
		return accBalance;
	}
	public void setAccIntegral(BigDecimal accIntegral) {
		this.accIntegral = accIntegral;
	}

	public BigDecimal getAccIntegral() {
		return accIntegral;
	}

    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("openid", getOpenid())
            .append("accBalance", getAccBalance())
            .append("accIntegral", getAccIntegral())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
